package com.item.daoEx;

import java.util.List;
import java.util.Map;

import com.base.entity.QueryParams;
import com.item.dao.model.User;
import org.apache.ibatis.annotations.Param;

import com.item.daoEx.model.UserEx;


public interface UserMapperEx{

	List<UserEx> selectList(Map<String, Object> map);

	void updateBalance(Map<String, Object> map);

	List<Integer> selectIdByAccounts(@Param("accounts")List<String> accounts);
	
	Integer selectIdByAccount(String account);
	
	String selectAccountById(String id);

	List<UserEx> selectNear(QueryParams.Builder builder);

	List<UserEx> selectAppList(QueryParams.Builder builder);

	List<UserEx> selectMyFriend(Integer userId);

	int updateUserStrength(QueryParams.Builder builder);

	Integer selectCoinSort(QueryParams.Builder builder);

	Integer selectGoodsSort(QueryParams.Builder builder);

	List<UserEx> selectGoodsSortUser(QueryParams.Builder builder);

	int updateStrength(QueryParams.Builder builder);

	List<UserEx> selectCoinList(QueryParams.Builder builder);

	int updateStrengthByUser(QueryParams.Builder builder);

	List<UserEx> selectWebList(QueryParams.Builder builder);

	/**
	 * 艺术家详情
	 * @param userid
	 * @return
	 */
    UserEx selectArtDetail(Integer userid);

	/**
	 * 艺术家列表
	 * @param map
	 * @return
	 */
	List<UserEx> selectArtList(Map<String, Object> map);

	/**
	 * 用户动态详情
	 * @param map
	 * @return
	 */
    UserEx selectNewsDetail(Map<String, Object> map);

    int updateCreditList(Map<String, Object> map);

    List<UserEx> selectMyFocus(QueryParams.Builder builder);

	int updateUserCredit(@Param("users")List<User> users,@Param("credit")Integer credit);
}